import axios from '@/utils/request';
 export function conditionAdvert(advert) {
    return axios.post(`advert/adminFindAll`,advert)
  }
  export function delInfoById(id) {
    return axios.delete(`recruitmentInfo/delById/${id}`)
  }
  export function conditionInfo(info) {
    return axios.post(`recruitmentInfo/condition`,info)
  }
  export function saveOrUpdate(advert) {
    return axios.post(`advert/saveOrUpdate`,advert)
  }
  
  export function findById(id) {
    return axios.get(`advert/findById/${id}`)
  }

  export function delById(id) {
    return axios.delete(`advert/delById/${id}`)
  }

  export function selectTitle(str) {
    return axios.get(`recruitmentInfo/selectTitle?str=`+str)
  }
  export function selectName(str) {
    return axios.get(`enterprise/findByName?name=`+str)
  }
  export function findCity() {
    return axios.get(`city`)
  }
  export function findAllOccpation() {
    return axios.get("occupation")
  } 
  export function findwelfare(page) {
    return axios.get(`welfare/condition/${page.current}/${page.size}`)
  } 
  export function findwelfareById(id) {
    return axios.get(`welfare/findById/${id}`)
  } 
  export function delwelfareById(id) {
    return axios.delete(`welfare/delById/${id}`)
  } 

  export function saveOrUpdatewelfare(welfare) {
    return axios.post(`welfare/saveOrUpdate`,welfare)
  } 
  export function findNumByCity() {
    return axios.get(`recruitmentInfo/findNumByCity`)
  } 